package com.fanw.easyExport.core.data.defaultJdbcImpl;

/**
 * JDBC数据源配置
 */
public class JdbcDataSourceConfig {
    private String driverClassName; // 数据库驱动类名
    private String url;             // 数据库连接URL
    private String username;        // 数据库用户名
    private String password;        // 数据库密码
    private String query;           // 查询SQL语句

    // 可选：连接池配置，后续需要配置化
    private int maxPoolSize = 10;   // 最大连接池大小
    private int minPoolSize = 1;    // 最小连接池大小
    private int connectionTimeout = 30000; // 连接超时时间(ms)

    public String getDriverClassName() { return driverClassName; }
    public void setDriverClassName(String driverClassName) { this.driverClassName = driverClassName; }

    public String getUrl() { return url; }
    public void setUrl(String url) { this.url = url; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getQuery() { return query; }
    public void setQuery(String query) { this.query = query; }

    public int getMaxPoolSize() { return maxPoolSize; }
    public void setMaxPoolSize(int maxPoolSize) { this.maxPoolSize = maxPoolSize; }

    public int getMinPoolSize() { return minPoolSize; }
    public void setMinPoolSize(int minPoolSize) { this.minPoolSize = minPoolSize; }

    public int getConnectionTimeout() { return connectionTimeout; }
    public void setConnectionTimeout(int connectionTimeout) { this.connectionTimeout = connectionTimeout; }
}
